21. Solution: Networking In AWS Exercise

Networking In AWS

  1. In the VPC service, click on "NAT Gateways" -> "Create NAT Gateway"

ND0063 C1 L1 14 Networking In AWS Walkthrough

  1. Pick the subnet that was just created.
  2. Click "Allocate Elastic IP address"
  3. Click "Create NAT Gateway"

ND0063 C1 L1 16 Networking In AWS Exercise Solution Video

  1. Click "Edit route tables"
  2. Select the route table with no subnet association.

  1. Click on the "Routes" tab, then "Edit Routes"

  2. Select your NAT Gateway and click "Save routes"

Subnet

  1. In the VPC service, select Subnets -> Create Subnet
  2. Name the subnet "Private subnet"
  3. Choose your VPC that was just created.
  4. Leave Availability Zone as "No preference"
  5. Enter an IPv4 CIDR block
    • This CIDR block must fall within the VPC CIDR block and cannot overlap with another subnet in this VPC

Results

You have now created a private subnet that will add an additional layer of security to your applications. Be sure to review the NAT Gateway, route table and subnet and how they are connected.

NAT Gateway

Route table

Subnet